Now that we track apps instead of instances, we can make the menu
items activatable, because the corresponding action is no longer
app specific (like activating a particular tab): We can simply
activate the app, which hopefully will bring it to the foreground
again.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2790>
delete params.message;
super._init(app.get_name(), app.get_icon(), {
- activate: false,
- reactive: false,
...params,
});
closeButton.connect('clicked', () => this._quitApp().catch(logError));
+ this.connect('activate', () => this.app.activate());
+
this.connect('destroy', () => this._onDestroy());
}